/*
 * WhiteEgg.cpp
 *
 *  Created on: 19/11/2012
 *      Author: san
 */

#include "WhiteEgg.h"
#include "VisibleElement.h"
WhiteEgg::WhiteEgg(double x, double y, Vector2D destination) {
	this->setX(x);
	this->setY(y);
	this->setSpeed(destination);
	this->setImagePath("huevo-blanco.png");
	this->setDamageToPig(0);
	this->setDamageToBox(50);
	this->setDamageToBird(100);
}

WhiteEgg::WhiteEgg(const WhiteEgg& w) : Egg(w) {

}

VisibleElement* WhiteEgg::makeCopy() {
	return new WhiteEgg(*this);
}

WhiteEgg::~WhiteEgg() {
	// TODO Auto-generated destructor stub
}

#include <iostream>
void WhiteEgg::onCollisionResponse(PhysicsElement &other) {
	this->beHit(MAX_DAMAGE);
	std::cout << "el huevo esta vivo? " << this->isDisposable() << std::endl;
}
